<?php

namespace Miniapp\Controllers;

class UserController extends AuthController {

    public function ReportAction() {
        $objectId = $_POST['objectId'];
        $objectType = $_POST['objectType'];
        $content = $_POST['content'];
        $reportService = service("User/ReportService");
        $result = $reportService->addReport($this->userId, $objectId, $objectType, $content, $this->user);
        $this->renderJson($result);
    }

}
